SetOverwrite {Steel Indian IS 800-2007}

SetOverwrite

Syntax

SapObject.SapModel.DesignSteel.Indian_IS_800_2007.SetOverwrite

VB6 Procedure

Function SetOverwrite(ByVal Name As String, ByVal Item As Long, ByVal Value As Double, Optional ByVal ItemType As eItemType = Object) As Long

Parameters

Name

The name of an existing frame object or group depending on the value of the ItemType item.

Item

This is an integer between 1 and 44, inclusive, indicating the overwrite item considered.

1 = Framing type

2 = Section class

3 = Column buckling curve (z-z)

4 = Column buckling curve (y-y)

5 = Is rolled section

6 = Consider deflection

7 = Deflection check type

8 = DL deflection limit, L/Value

9 = SDL + LL deflection limit, L/Value

10 = LL deflection limit, L/Value

11 = Total load deflection limit, L/Value

12 = Total camber limit, L/Value

13 = DL deflection limit, absolute

14 = SDL + LL deflection limit, absolute

15 = LL deflection limit, absolute

16 = Total load deflection limit, absolute

17 = Total camber limit, absolute

18 = Specified camber

19 = Net area to total area ratio

20 = Live load reduction factor

21 = Unbraced length ratio, Major

22 = Unbraced length ratio, Minor

23 = Unbraced length ratio, Lateral Torsional Buckling

24 = Effective length factor Braced, K1 Major

25 = Effective length factor Braced, K1 Minor

26 = Effective length factor Sway, K2 Major

27 = Effective length factor Sway, K2 Minor

28 = Effective length factor, K Lateral Torsional Buckling

29 = Bending coefficient, C1

30 = Uniform moment factor, Cmz

31 = Uniform moment factor, Cmy

32 = Uniform moment factor, CmLT

33 = Moment coefficient, kz

34 = Moment coefficient, ky

35 = Moment coefficient, k_LT

36 = Yield stress, Fy

37 = Compressive capacity, Pd

38 = Tensile capacity, Td

39 = Major bending capacity, Mdz

40 = Minor bending capacity, Mdy

41 = Critical buckling moment, Mcr

42 = Major shear capacity, Vdy

43 = Minor shear capacity, Vdz

44 = Demand/capacity ratio limit

Value

The value of the considered overwrite item.

1 = Framing type

0 = As specified in preferences

1 = SMF

2 = OMF

3 = SCBF

4 = OCBF

5 = EBF

6 = Secondary

2 = Section class

1 = Class 1 (Plastic)

2 = Class 2 (Compact)

3 = Class 3 (Semicompact)

4 = Class 4 (Slender)

3 = Column buckling curve (z-z)

1 = a

2 = b

3 = c

4 = d

4 = Column buckling curve (y-y)

1 = a

2 = b

3 = c

4 = d

5 = Is rolled section

Value >= 0; 0 means use program default value

6 = Consider deflection

0 = Program Determined

1 = No

2 = Yes

7 = Deflection check type

0 = Program default

1 = Ratio

2 = Absolute

3 = Both

8 = DL deflection limit, L/Value

Value >= 0; 0 means no check for this item.

9 = SDL + LL deflection limit, L/Value

Value >= 0; 0 means no check for this item.

10 = LL deflection limit, L/Value

Value >= 0; 0 means no check for this item.

11 = Total load deflection limit, L/Value

Value >= 0; 0 means no check for this item.

12 = Total camber limit, L/Value

Value >= 0; 0 means no check for this item.

13 = DL deflection limit, absolute

Value >= 0; 0 means no check for this item. [L]

14 = SDL + LL deflection limit, absolute

Value >= 0; 0 means no check for this item. [L]

15 = LL deflection limit, absolute

Value >= 0; 0 means no check for this item. [L]

16 = Total load deflection limit, absolute

Value >= 0; 0 means no check for this item. [L]

17 = Total camber limit, absolute

Value >= 0; 0 means no check for this item. [L]

18 = Specified camber

Value >= 0. [L]

19 = Net area to total area ratio

Value >= 0; 0 means use program default value.

20 = Live load reduction factor

Value >= 0; 0 means use program determined value.

21 = Unbraced length ratio, Major

Value >= 0; 0 means use program determined value.

22 = Unbraced length ratio, Minor

Value >= 0; 0 means use program determined value.

23 = Unbraced length ratio, Lateral Torsional Buckling

Value >= 0; 0 means use program determined value.

24 = Effective length factor Braced, K1 Major

Value >= 0; 0 means use program determined value.

25 = Effective length factor Braced, K1 Minor

Value >= 0; 0 means use program determined value.

26 = Effective length factor Sway, K2 Major

Value >= 0; 0 means use program determined value.

27 = Effective length Sway factor, K2 Minor

Value >= 0; 0 means use program determined value.

28 = Effective length factor, K Lateral Torsional Buckling

Value >= 0; 0 means use program determined value.

29 = Bending coefficient, C1

Value >= 0; 0 means use program determined value.

30 = Uniform moment factor, Cmz

Value >= 0; 0 means use program determined value.

31 = Uniform moment factor, Cmy

Value >= 0; 0 means use program determined value.

32 = Uniform moment factor, CmLT

Value >= 0; 0 means use program determined value.

33 = Moment coefficient, kz

Value >= 0; 0 means use program determined value.

34 = Moment coefficient, ky

Value >= 0; 0 means use program determined value.

35 = Moment coefficient, k_LT

Value >= 0; 0 means use program determined value.

36 = Yield stress, Fy

Value >= 0; 0 means use program determined value. [F/L
2
]

37 = Compressive capacity, Pd

Value >= 0; 0 means use program determined value. [F]

38 = Tensile capacity, Td

Value >= 0; 0 means use program determined value. [F]

39 = Major bending capacity, Mdz

Value >= 0; 0 means use program determined value. [F-L]

40 = Minor bending capacity, Mdy

Value >= 0; 0 means use program determined value. [F-L]

41 = Critical buckling moment, Mcr

Value >= 0; 0 means use program determined value. [F-L]

42 = Major shear capacity, Vdy

Value >= 0; 0 means use program determined value. [F]

43 = Minor shear capacity, Vdz

Value >= 0; 0 means use program determined value. [F]

44 = Demand/capacity ratio limit

Value >= 0; 0 means use program determined value.

ItemType

This is one of the following items in the eItemType enumeration:

Object = 0

Group = 1

SelectedObjects = 2

If this item is Object, the assignment is made to the frame object specified by the Name item.

If this item is Group, the assignment is made to all frame objects in the group specified by the Name item.

If this item is SelectedObjects, assignment is made to all selected frame objects and the Name item is ignored.

Remarks

This function sets the value of a steel design overwrite item.

The function returns zero if the item is successfully set, otherwise it returns a nonzero value.

VBA Example

Sub SetSteelDesignOverwriteItemINDIAN_IS_800_2007()

'dimension variables

Dim SapObject as cOAPI

Dim SapModel As cSapModel

Dim ret As Long

'create Sap2000 object

Set SapObject = CreateObject("CSI.SAP2000.API.SapObject")

'start Sap2000 application

SapObject.ApplicationStart

'create SapModel object

Set S a p M o d e l = S a p O b j e c t . S a p M o d e l b r / > 
 b r / > 
 &# 3 9 ; i n i t i a l i z e m o d e l b r / > 
 r e t = S a p M o d e l . I n i t i a l i z e N e w M o d e l b r / > 
 b r / > 
 &# 3 9 ; c r e a t e m o d e l f r o m t e m p l a t e b r / > 
 r e t = S a p M o d e l . F i l e . N e w 2 D F r a m e ( P o r t a l F r a m e , 2 , 1 4 4 , 2 , 2 8 8 ) b r / > 
 b r / > 
 &# 3 9 ; s e t s t e e l d e s i g n c o d e b r / > 
 r e t = S a p M o d e l . D e s i g n S t e e l . S e t C o d e ( &q u o t ; I n d i a n I S : 8 0 0 - 2 0 0 7 &q u o t ; ) b r / > 
 b r / > 
 &# 3 9 ; s e t o v e r w r i t e i t e m b r / > 
 r e t = S a p M o d e l . D e s i g n S t e e l . I N D I A N _ I S _ 8 0 0 _ 2 0 0 7 . S e t O v e r w r i t e ( &q u o t ; 8 &q u o t ; , 1 , 2 ) b r / > 
 b r / > 
 &# 3 9 ; c l o s e S a p 2 0 0 0 b r / > 
 S a p O b j e c t . A p p l i c a t i o n E x i t F a l s e b r / > 
 S e t S a p M o d e l = N o t h i n g b r / > 
 S e t S a p O b j e c t = N o t h i n g b r / > 
 E n d S u b / p > 
 h 2 > R e l e a s e N o t e s / h 2 > 
 p c l a s s = " C o m m e n t " > I n i t i a l r e l e a s e i n v e r s i o n 1 5 . 0 . 1 . / p > 
 h 2 > S e e A l s o / h 2 > 
 p c l a s s = " C o m m e n t " > a h r e f = " G e t O v e r w r i t e _ { S t e e l _ I n d i a n _ I S _ 8 0 0 - 2 0 0 7 } . h t m " > G e t O v e r w r i t e / a > / p > 

 / b o d y > / h t m l >